export default {
  namespaced: true,
  state: {
    show: false,
    condition: {}
  },
  actions: {
    show({ state }, show) {
      return new Promise(async (resolve) => {
        state.show = show;
        resolve();
      });
    },
    set({ state }, condition) {
      return new Promise(async (resolve) => {
        state.condition = condition;
        resolve();
      });
    },
    reset({ state }) {
      return new Promise(async (resolve) => {
        state.condition = {}
        resolve();
      });
    }
  }
}
